package com.ydh.live.data.bus;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;

/**
 * @author 13001
 */
public class MainActivity extends AppCompatActivity implements View.OnClickListener {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        findViewById(R.id.btn_live_data_v1).setOnClickListener(this);
        findViewById(R.id.btn_live_data_v2).setOnClickListener(this);

    }

    @Override
    public void onClick(View v) {
        if (v.getId() == R.id.btn_live_data_v1) {
            startActivity(new Intent(this, Live1Activity.class));
        } else if (v.getId() == R.id.btn_live_data_v2) {
            startActivity(new Intent(this, Live2Activity.class));
        }
    }
}